package com.cooper.java.scraper;

/**
 * Created with IntelliJ IDEA.
 * User: cooperlee
 * Date: 11/16/12
 * Time: 4:35 PM
 */
public class ScraperException extends Exception{


    /**
     *
     */
    public static final int ERROR_XML = 111;
    public static final int ERROR_IO = 112;
    public static final int ERROR_NOT_FOUND = 113;
    public static final int ERROR_OTHER = 114;

    private static final long serialVersionUID = -1866050074424894216L;
    private Exception e;
    private String functionName;

    public ScraperException(String functionName, Exception e) {
        super(e.getMessage());
        this.functionName = functionName;
        this.e = e;
    }

    public ScraperException(Exception e) {
        super(e.getMessage());
        this.e = e;
    }

    public String getFunctionName() {
        return functionName;
    }

}
